# say [fork] operation fork called

# 存储渲染到第几组
scoreboard players set rendered mt_index 0

# 生成 last_cnt_minus_1
scoreboard players operation last_cnt_minus_1 mt_index = last_cnt mt_index
scoreboard players remove last_cnt_minus_1 mt_index 1

# 标记到第二层分叉的位置
# scoreboard players set fork_rendered mt_index 0

execute as @e[tag=mt_gen_last] run execute at @s run function mountain:gen/fork/foreach_summon
function mountain:gen/fork/fill_loop